package com.atguigu.qqzone.pojo;

import java.util.Date;

/**
 * @ClassName: Reply
 * @Description: 回复
 * @Author: wty
 * @Date: 2022/12/9
 */

public class Reply {
    private Integer id;
    private String content;
    private Date replyData;
    private UserBasic author;
    /**
     * 回复和日志是 n:1
     */
    private Topic topic;

    /**
     * 日志主人回复和回复是 1：1
     */
    private HostReply hostReply;

    public Reply() {
    }

    public Reply(Integer id, String content, Date replyData, UserBasic author, Topic topic) {
        this.id = id;
        this.content = content;
        this.replyData = replyData;
        this.author = author;
        this.topic = topic;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getReplyData() {
        return replyData;
    }

    public void setReplyData(Date replyData) {
        this.replyData = replyData;
    }

    public UserBasic getAuthor() {
        return author;
    }

    public void setAuthor(UserBasic author) {
        this.author = author;
    }

    public Topic getTopic() {
        return topic;
    }

    public void setTopic(Topic topic) {
        this.topic = topic;
    }

    @Override
    public String toString() {
        return "Reply{" +
                "id=" + id +
                ", content='" + content + '\'' +
                ", replyData=" + replyData +
                ", author=" + author +
                ", topic=" + topic +
                '}';
    }
}
